package matlap.database.dao;

import java.util.List;

import matlap.shared.Article;
import matlap.shared.Author;
import matlap.shared.Topic;
import matlap.shared.exceptions.MyException;

public interface ArticleDAO {

	List<Author> selectAuthorName() throws MyException;

	List<Topic> selectTopicsName();

	List<Article> selectArticle(String articleName, String topicName,
			String authorName);

	void insertAuthor(String authorName, String localityName);

	void insertTopic(String name);

	boolean insertArticle(String address, String authorName, String topicsName,
			String fileName, String path) throws MyException;

	int getArticlesNumber();
}
